{include admin.inc.header}

{include admin.inc.top}
<style>
	h2.header {
		padding: 10px 0;
		margin-bottom: 20px;
		border-bottom: 1px solid #f0f0f0;
		font-weight: normal;
		font-size: 18px;
	}
</style>
<div class="container-fluid content-body">
	<div class="main">
		{include admin.inc.menu}

		<section class="right-section" id="right-section">
			<!-- start of inner-frame -->
			<div class="inner-iframe">
				<ul class="breadcrumb">
					<li>
						<i class="glyphicon glyphicon-home"></i>
						<span>当前位置：</span>
						<a href="#">{$breadcrumb[0]}</a>
						<i class="glyphicon glyphicon-chevron-right"></i>
						<a href="#">{$breadcrumb[1]}</a>
					</li>
				</ul>

				<div class="inner-container">

					<!-- Nav tabs -->
					<ul class="nav nav-tabs" role="tablist" id="myTab">
						<li role="presentation"><a href="#site" role="tab" data-toggle="tab">网站设置</a></li>
					</ul>

					<form role="form" class="content-add-form form-horizontal" id="content-add-form" autocomplete="off">
						<!-- Tab panes -->
						<div class="tab-content" style="padding-top: 20px;">
							<!-- 网站设置 -->
							<div role="tabpanel" class="tab-pane fade" id="site">

								<div class="form-group">
									<label class="col-sm-2 control-label">网站名称</label>
									<div class="col-sm-10">
										<input type="text" name="data[site_title]" class="form-control" cname="网站名称" value="{$item[site_title]}" />
										<p class="help-block"></p>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">管理后台名称</label>
									<div class="col-sm-10">
										<input type="text" name="data[admin_title]" class="form-control" cname="管理后台名称" value="{$item[admin_title]}" />
										<p class="help-block"></p>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">网站版权</label>
									<div class="col-sm-10">
										<input type="text" name="data[site_copyright]" class="form-control" cname="网站版权" value="{$item[site_copyright]}" />
										<p class="help-block"></p>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">ICP备案号</label>
									<div class="col-sm-10">
										<input type="text" name="data[site_icp]" class="form-control" cname="网站版权" value="{$item[site_icp]}" />
										<p class="help-block"></p>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">API白名单</label>
									<div class="col-sm-10">
										<input type="text" name="data[ip_white_list]" class="form-control" cname="API白名单" value="{$item[ip_white_list]}" />
										<p class="help-block">多个ip之间用逗号隔开</p>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">超级管理员IDS</label>
									<div class="col-sm-10">
										<input type="text" name="data[super_managers]" class="form-control" cname="超级管理员IDS" value="{$item[super_managers]}" />
										<p class="help-block">填写超级管理员的ID，多个超级管理员使用英文逗号隔开</p>
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">登录超时(分钟)</label>
									<div class="col-sm-4">
										<input type="input" name="data[sessionExpr]" data-size="normal"  class="form-control" value="{$item[sessionExpr]}">
									</div>
									<div class="col-sm-4">
										(登陆后该时间段内无操作，系统自动退出账号登陆状态)
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">后台管理登录验证码</label>
									<div class="col-sm-4">
										<input type="checkbox" id="switch-status-verifyCode" name="data[verifyCode]" class="bswitch" data-size="small" {if $item[verifyCode] == 'on'}checked{/if} data-on-text="开启" data-off-text="关闭">
									</div>
									<div class="col-sm-4">
										(账号登陆时是否启用验证码机制)
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">站点状态</label>
									<div class="col-sm-4">
										<input type="checkbox"  name="data[site_enabled]"
											   class="bswitch" data-size="small" {if
											   $item[site_enabled]=='on'}checked{/if} data-on-text="开启"
											   data-off-text="关闭">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">站点关闭页面</label>
									<div class="col-sm-4">
										<input type="input" name="data[site_down_page]"
											   class="form-control" value="{$item[site_down_page]}">
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">站点关闭通知</label>
									<div class="col-sm-4">
										<textarea  name="data[site_down_info]" class="form-control">{$item[site_down_info]}</textarea>
									</div>
								</div>
                                <h4>微信公众号设置</h4>
								<div class="form-group">
									<label class="col-sm-2 control-label">被添加自动回复</label>
									<div class="col-sm-4">
										<textarea  name="data[weixin_auto_reply_added]" class="form-control">{$item[weixin_auto_reply_added]}</textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">消息自动回复</label>
									<div class="col-sm-4">
										<textarea  name="data[weixin_auto_reply]" class="form-control">{$item[weixin_auto_reply]}</textarea>
									</div>
								</div>

							</div><!-- END 网站设置 -->

						</div><!-- END panel -->

						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">
								<div class="btn-group btn-group-or">
									<a href="{$update_url}" class="btn btn-primary" id="submit_btn"
									   proxy='{"method":"post", "location":"{$index_url}"}'>提交保存</a>
									<span class="or">OR</span>
									<button type="reset" class="btn btn-default">重置表单</button>
								</div>
							</div>
						</div>

					</form>

				</div><!-- end of inner container -->

			</div><!-- end of inner frame-->

		</section>

	</div>
</div>

{include admin.inc.footer}

<script>
	seajs.use("setting", function(exports) {
		exports.init({});
	});
</script>
</body>
</html>
